import { createRouter,
        createWebHashHistory,
        RouteRecordRaw
} from "vue-router";

import logins from "../components/Login.vue";
import msg from "../components/Message.vue";
import UserLogin from "../components/UserLogin.vue";
const routes: Array<RouteRecordRaw> = [
    {
        path:"/",
        redirect:"/login"
    },
    {
        path:"/login",
        name:"login",
        component:logins
    },
    {
        path:"/messages",
        name:"messages",
        component:msg
    },
    {
        path:"/UserLogin",
        name:"userlogin",
        component:UserLogin
    },
];
const router=createRouter({
    history:createWebHashHistory(),
    routes
});
export default router;